package org.OpenGeoPortal.Download;

import java.util.Map;

import org.springframework.context.support.*;
import org.springframework.beans.factory.*;

public class DownloadInjector {
	public DownloadInjector(String[] bounds, Map<String,String> layerMap) throws Exception{
		BeanFactory injector = new FileSystemXmlApplicationContext("webapps/opengeoportal/download.xml");
		DownloadPackager downloadHandler = (DownloadPackager) injector.getBean("downloadHandler");
		downloadHandler.requestLayers(layerMap, bounds);
	}
}
